package com.epam.ws.anatomist.example.message;

import java.util.Properties;

public class TemplateMessage
{

	private String template;

	private Properties properties;

	public String getTemplate()
	{
		return template;
	}

	public void setTemplate(String template)
	{
		this.template = template;
	}

	public Properties getProperties()
	{
		return properties;
	}

	public void setProperties(Properties properties)
	{
		this.properties = properties;
	}

	public TemplateMessage usingProperties(Properties properties)
	{
		if (this.properties == null)
		{
			this.properties = properties;
		}
		else
		{
			this.properties.putAll(properties);
		}
		return this;
	}

}
